package com.bdqn.t350.ch09.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.t350.ch09.bean.User;
import com.bdqn.t350.ch09.bean.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    //@Insert("insert into .......")
    //public void add(User user);

    //@Select("select * from ......")
    public List<User> list();

    public Page<UserVo> listPage(@Param("page") Page<UserVo> page, @Param("user") User user);

    public Page<User> listPageAssociation(@Param("page") Page<User> page, @Param("user") User user);

    public Page<User> listPageCollection(@Param("page") Page<User> page, @Param("user") User user);

    public List<String> getByUserNameRightCode(@Param("user") User user);
}
